package demoMod.stsconsole.chests;

import demoMod.stsconsole.ConsoleEntry;
import demoMod.stsconsole.interfaces.ChestOpenSubscriber;

public abstract class AbstractChest {
    private boolean opened = false;

    public void open() {
        ConsoleEntry.triggerSubscribers(ChestOpenSubscriber.class, "onChestOpen", new Class[]{AbstractChest.class}, new Object[]{this});
        opened = true;
    }

    public boolean isOpened() {
        return opened;
    }
}
